package com.fellw.mango.real_person.authentication.api;


import lombok.Data;

import java.util.Optional;

/**
 * ID real name authentication Phone OCR VerifiedO param
 *
 * @author fate
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
public class IdOCRResultDto {
    private IDVerifiedOCRDto.DTO idVerifiedOCRPhoneDto;
    private IDVerifiedOCRResult.D idVerifiedOCRResult;

    @SuppressWarnings("unused")
    public IDVerifiedOCRDto.DTO getIdVerifiedOCRPhoneDto() {
        return Optional.ofNullable(idVerifiedOCRPhoneDto).orElse(
                IDVerifiedOCRDto.DTO.builder().build()
        );
    }
}
